package com.herysoft.scm.struts.sys;

import java.util.ArrayList;

import org.apache.struts2.components.ActionError;

import com.herysoft.scm.biz.sys.ModuleBiz;
import com.herysoft.scm.model.sys.Module;
import com.opensymphony.xwork2.ActionSupport;

public class ModuleAction extends  ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 100001L;
	private ModuleBiz moduleBiz; 


	public void setModuleBiz(ModuleBiz moduleBiz) {
		this.moduleBiz = moduleBiz;
	}

	public ModuleAction(){}



	public String list(){
		modules = this.moduleBiz.getModules(null);
		return "success";
	}
	
	private Module module;
	
	private ArrayList<Module> modules;


	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public ArrayList<Module> getModules() {
		return modules;
	}

	public void setModules(ArrayList<Module> modules) {
		this.modules = modules;
	}

}
